# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=mkrundir
pkgver=0.4.0
pkgrel=0
pkgdesc="Create an XDG_RUNTIME_DIR"
url="https://sr.ht/~whynothugo/mkrundir/"
arch="x86_64 aarch64 riscv64" # Hare
license="ISC"
makedepends="hare libcap-setcap"
source="
	mkrundir-$pkgver.tar.gz::https://git.sr.ht/~whynothugo/mkrundir/archive/v$pkgver.tar.gz
"
options="!check setcap"
builddir="$srcdir/mkrundir-v$pkgver/"

build() {
	make PREFIX=/usr mkrundir
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
8b9996dfd404961d3ca9d4d7d7f3a968a0aee9096d59d64dff03bc258127a4f605d09ab20fdedb39ec4baad7fc2cac31f7eaeff6e2f3912a1a81e0b6b183088b  mkrundir-0.4.0.tar.gz
"
